# -*- coding: utf-8 -*-
#Necesario para usar path dinamicos
import os
PROJECT_PATH = os.path.abspath(os.path.split(__file__)[0])

# Django settings for mundofacu project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG

#Configuracion de la base de admins
ADMINS = (
    ('Marcos Federico Mandrille', 'mmandrille@gmail.com'),
    ('Mauricio Nazzetta', 'mounazzetta@gmail.com'),
    ('Nicolas Nocete', 'niconocete@gmail.com'),
    ('Alejandro Julian', 'ajulian_rafaela@gmail.com'),
)
MANAGERS = ADMINS

TEMPLATE_CONTEXT_PROCESSORS = (
	#Contextos mios
	"mundofacu.portal.contextos.general",

	#Contextos defaults de django 1.1
	"django.core.context_processors.auth",
	"django.core.context_processors.debug",
	"django.core.context_processors.i18n",
	"django.core.context_processors.media",
)

#Configuracion de la base de datos
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = os.path.join(PROJECT_PATH,'mundofacu.db')
DATABASE_USER = ''
DATABASE_PASSWORD = ''
DATABASE_HOST = ''
DATABASE_PORT = ''

#Configuracion del servidor de correo
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'mundofacu@gmail.com'
EMAIL_HOST_PASSWORD = 'mundofacu'
EMAIL_PORT = 587

# system time zone.
TIME_ZONE = 'America/Buenos_Aires'

# Language code
LANGUAGE_CODE = 'es-AR'
SITE_ID = 1
USE_I18N = True

# Absolute path to the directory that holds media.
MEDIA_ROOT = os.path.join(PROJECT_PATH, 'static/')

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
MEDIA_URL = 'http://www.mundofacu.com.ar/static/'

# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
ADMIN_MEDIA_PREFIX = '/media/'
#Autentificacion de usuarios
AUTH_PROFILE_MODULE = 'usuarios.perfil'

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'nudmjpbonl^s^^wno!+ynia1y7!(^7c-@8$oz_64w1@#m04&2w'

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
)

ROOT_URLCONF = 'mundofacu.urls'

TEMPLATE_DIRS = (
	os.path.join(PROJECT_PATH, "templates"),
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',

    'mundofacu.portal',
    'mundofacu.usuarios',
    'mundofacu.foro',
    'mundofacu.news',
	'mundofacu.voice',
)
